﻿//using System;
//using System.Collections.Generic;
//using System.Linq;
//using System.Text;

//using Microsoft.VisualStudio.TestTools.UnitTesting;

//namespace Pibby.Core.IO.Tests
//{
//    [TestClass]
//    public class FileSearcherTests
//    {
//        [TestMethod]
//        public void FileSeacher_CanFindFile_InSingleFolder()
//        {
//            var searcher = new FileSearcher();
			
//            string folderPath = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments);
//            IFolder folder = new Stubs.Folder (folderPath, 25, 0);
//            searcher.SearchPaths.Add (folder);

//            searcher.FileName = "File20.mp3";
//            IFile found = searcher.Find();

//            Assert.IsNotNull (found);
//            Assert.AreEqual("File20.mp3", found.Name);
//        }

//        [TestMethod]
//        public void FileSeacher_CanFind_InFolderHierarchy()
//        {
//            var searcher = new FileSearcher();

//            string folderPath = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments);
//            IFolder folder = new Stubs.Folder(folderPath, 25, 2);
//            searcher.SearchPaths.Add(folder);

//            searcher.FileName = "File20.mp3";

//            IFile found = searcher.Find();

//            Assert.IsNotNull(found);
//            Assert.AreEqual("File20.mp3", found.Name);
//        }
//    }
//}
